<?php

/**
 * 短信服务接口
 * @author weihu
 *
 */
class Sms{
	
	public function __construct()
	{
		require_once 'sms/demo_gbk.php';
	}
	
	/**
	 * 发送短信
	 * @param array $mobile_arr
	 * @param string $sms
	 */
	public static function sendMess($mobile_arr,$sms)
	{
		$result = (int)sendSMS($mobile_arr,iconv("UTF-8", "GBK", $sms));
		if($result === 0)
		{
			return true;
		}
		return false;
	}
}